<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="http://www.kuibutech.com/wechatAuth/css/weui.css">
    <title>打卡分享</title>
</head>

<style type="text/css">
    body {
        margin: 0px;
        background-color: #FAFAFA;
    }

    .user-bg {
        background-image: url("http://kuibutech.oss-cn-shanghai.aliyuncs.com/reevesFiles/kaixueji.jpg");
        width: 100%;
        height: 11.5rem;
        text-align: center;
    }

    .user {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: solid 2px #ffffff;
        overflow: hidden;
        margin-top: 60px;
    }

    .content {
        margin-top: 0rem;
        width: 90%;
        margin-left: 2%;
        padding: 10px 10px;
        background-color: #ffffff;
        margin-bottom: 50px;
    }

    .footer {
        position: fixed;
        bottom: 0px;
        left: 0px;
        width: 100%;
        padding: 4px 5px 0px 5px;
        box-sizing: border-box;
        height: 50px;
        background-color: #F7F7F7;
    }

    .other {
        font-size: 13px;
        margin-top: 20px;
    }

    .ad {
        width: 90%;
        margin-left: 5%;
        margin-bottom: 60px;
    }

    .pic img {
        width: 100%;
        height: 400px;
        margin-bottom: 5px;
    }
</style>

<script type="text/javascript">
    function qrcodePage() {
        window.location.href = '/wechatAuth/route/gotoQRcode';
    }
</script>

<body>

<div class="user-bg">
    <img class="user" src="${user_info.photo}"/>
    <p style="color: #ffffff">${user_info.name}</p>
</div>

<div class="content">
    <div class="text">
        <p style="font-size: 18px;font-weight: 400;margin-bottom: 10px">
            <c:if test="${launch_info.type=='跑步'||launch_info.type=='骑行'}">
                ${launch_info.date}&nbsp;我跑了${launch_info.value}公里,继续加油!
            </c:if>

            <c:if test="${launch_info.type=='走路'}">
                ${launch_info.date}&nbsp;我走了${launch_info.value}步,继续加油!
            </c:if>

            <c:if test="${launch_info.type=='健身'||launch_info.type=='其他'}">
                ${launch_info.date}&nbsp;我运动了${launch_info.value}小时,继续加油!
            </c:if>

        </p>
        <p style="font-size: 14px;color: #5A5A5A">运动心情：${launch_info.text}</p>
    </div>

    <div class="other">
        <a style="color: #00C000" href="">天气.${launch_info.weather}</a>
        <label style="float: right;margin-right: 10px">${launch_info.date} 分享于燃烧21</label>
    </div>

    <hr style="width: 100%;margin-top:10px;margin-bottom:20px;height:1px;border:none;border-top:1px dashed #5A5A5A;"/>

    <div class="pic">
        <c:forEach items="${imgs}" var="photo">
            <c:if test="${photo!=''}"><img src="${photo}"></c:if>
        </c:forEach>
    </div>

</div>

<div class="ad">
    <img style="width: 100%;height: 150px" src="http://kuibutech.oss-cn-shanghai.aliyuncs.com/reevesFiles/kaixueji.jpg">
</div>

<div class="footer">
    <button class="weui_btn weui_btn_primary" onclick="qrcodePage()">我也要去运动</button>
</div>


<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
</body>
</html>